/**
 * Created by liyibiao on 17/6/8.
 */


var notify = require("gulp-notify");

module.exports = function(){

    var isNotify = false;
    if (isNotify){
        //发系统通知消息
        var args = Array.prototype.slice.call(arguments);
        notify.onError({
            title: 'compile error',
            message: '<%=error.message %>'
        }).apply(this, args);//替换为当前对象
        this.emit();//提交
    }else {
        console.error.bind(console);
    }
}
